package com.hxw.servicefeign.controller;

import com.hxw.servicefeign.interfaces.IHelloSchedualService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    IHelloSchedualService helloSchedualService;

    @GetMapping("/hello")
    public String sayHello(@RequestParam(value = "name") String name){
        return helloSchedualService.sayHelloFromClientOne(name);
    }

}
